package edu.androidecs.condescendingquiz;

public class Quiz
{
	public int quizLevel;
	public static final int NUM_OF_QUESTIONS=5;
	public int curQuestion;
	public Question questionsList[];
	public boolean isLoaded;
	
	public Quiz()
	{
		isLoaded=false;
		curQuestion=0;
		questionsList=new Question[NUM_OF_QUESTIONS];
	}
	
	public void addQuestion(QuestionLoadObject l)
	{
		//This means that loading is complete.
		if(curQuestion==NUM_OF_QUESTIONS)
		{
			curQuestion=0;
			isLoaded=true;
		}
		
		else
		{
			questionsList[curQuestion]=new Question(l);
			curQuestion++;
		}
	}
}
